package de.tabuma.soapformsweb.start.view;


import java.io.*;
import java.util.*;
import java.util.logging.*;
import javax.servlet.*;
import javax.servlet.http.*;

import com.google.appengine.api.users.*;

import de.tabuma.lib.tabumaview;
import de.tabuma.soapformsweb.controller.constants;


/**
 * @author $Author$
 * @version $Revision$
 * @since $Date$
 */
public class view extends tabumaview {

    private static Logger log = Logger.getLogger(view.class.getName());

    public view(String servlet, Hashtable parameter) {
        super(servlet, parameter);
    }
    
    public void processRequest(ServletContext context, HttpServletRequest request, HttpServletResponse response, PrintWriter out)  {
        try {

            out.println("<div class=\"contentHeader\">"+de.tabuma.soapformsweb.constants.getPrivateValueFromProperties("startpage.header", request.getLocale())+"</div>");
            out.println("<div class=\"contentContent\">"+de.tabuma.soapformsweb.constants.getPrivateValueFromProperties("startpage.content", request.getLocale())+"</div>");

            out.println("<ul>");
            out.println("\t<li><a href=\"login?"+constants.MAIN_NAV+"="+constants.NAV_CUSTOMER+"\" class=\"contentLink\">"+de.tabuma.soapformsweb.constants.getPrivateValueFromProperties("link.customer", request.getLocale())+"</a></li>");
            out.println("\t<li><a href=\"login?"+constants.MAIN_NAV+"="+constants.NAV_SOAPPROJECTS+"\" class=\"contentLink\">"+de.tabuma.soapformsweb.constants.getPrivateValueFromProperties("link.soapprojects", request.getLocale())+"</a></li>");
            out.println("\t<li><a href=\"login?"+constants.MAIN_NAV+"="+constants.NAV_ORDERS+"\" class=\"contentLink\">"+de.tabuma.soapformsweb.constants.getPrivateValueFromProperties("link.orders", request.getLocale())+"</a></li>");
            out.println("</ul>");
            
        } 
        catch(Exception e) {
            log.warning(e.getMessage());
        }
    } 


}
